//package com.inspur.edp.udt.generator.core.rtgenerator.entity.dtms;
//
//import com.inspur.edp.caf.generator.baseInfo.TypeInfo;
//import com.inspur.edp.cef.rtgenerator.entitygen.EntityGeneratorContext;
//import com.inspur.edp.cef.rtgenerator.entitygen.determination.field.B4SaveGetDeterminationsFieldGenerator;
//import com.inspur.edp.cef.spi.entity.AbstractPropertyInfo;
//import com.inspur.edp.udt.core.Determination.TplFieldRtrimDtmDecorator;
//import java.util.stream.Collectors;
//import org.eclipse.jdt.core.dom.ClassInstanceCreation;
//import org.eclipse.jdt.core.dom.Expression;
//
//public class UdtB4SaveGetDtmsFieldGenerator extends B4SaveGetDeterminationsFieldGenerator {
//
//  public UdtB4SaveGetDtmsFieldGenerator(
//      EntityGeneratorContext entityContext,
//      String nodeCode, Class basicGenOccasionAttr, Class extendGenOccasionAttr) {
//    super(entityContext, nodeCode, basicGenOccasionAttr, extendGenOccasionAttr);
//  }
//  @Override
//  protected Expression getCreateStringEnableRtrimDtmAdaptorSyntax(){
//    Expression baseSyntax = super.getCreateStringEnableRtrimDtmAdaptorSyntax();
//    ClassInstanceCreation classInstanceCreation = ast.newClassInstanceCreation();
//    classInstanceCreation.setType(new TypeInfo(TplFieldRtrimDtmDecorator.class).getType(ast, this.entityContext.getProjContext().getRootCompileUnitGenCtx()));
//    classInstanceCreation.arguments().add(baseSyntax);
//    return classInstanceCreation;
//  }
//  @Override
//    protected Iterable<AbstractPropertyInfo> getFieldRtrimPropertyInfos() {
//    return entityContext.getProjContext().getCurrentTypeInfo().getEntityEntityTypeInfos()
//        .get(nodeCode).getPropInfos()
//        .stream().filter(item -> item.getEnableRtrim() && !item.getEnableRtrimAsConstraint()).collect(
//        Collectors.toList());
//  }
//}
